#ifndef __GAME_TAR_H__
#define __GAME_TAR_H__

#include "game_def.h"
#include "microtar.h"

class CGameTar {
public:
  CGameTar();
  ~CGameTar();

  BOOL open(const char *filenmae);
  void close();

  BOOL find(const char *name);
  int getSize();
  int read(void *buf, int size);
private:
  BOOL _isOpen;
  mtar_t _tar;
  mtar_header_t _header;
};


#endif
